/** 
* @param {array}
* @param {any}
* @returns {array}
**/
function push(array, ...args) {
  if (!Array.isArray(array)) return
  const len = args.length
  const arrLen = array.length
  let i = -1

  while(++i < len) {
    array[i + arrLen] = args[i]
  }
  return array.length
}

export default push
